import axios from "axios";
export default {
    getProductSettleList(data){
        let url = `/szgjadmin/productSettlement/getProductSettlementList`
        return axios.post(url, data)
    },
    fillData(data){
        let url = `/szgjadmin/productSettlement/updateSettlementProductInfo`
        return axios.post(url, data)
    },
    // 获取产品列表
    getProductList(data){
        let url = `/szgjadmin/product/getProductList`
        return axios.post(url, data)
    },
    // 产品新增
    addProduct(data){
        let url = `/szgjadmin/product/addProduct`
        return axios.post(url, data)
    },
    // 产品信息更新
    updateProduct(data){
        let url = `/szgjadmin/product/updateProduct`
        return axios.post(url, data)
    },
    // 产品设置修改
    updateProductSet(data){
        let url = `/szgjadmin/product/updateProductSet`
        return axios.post(url, data)
    },
    // 获取产品设置回显信息
    getProductSet(data){
        let url = `/szgjadmin/product/getProductSetByProductId?`
        url += `productId=${data.productId}`
        return axios.get(url)
    },
    // 产品上下线
    changeStatus(data){
        let url = `/szgjadmin/product/changeStatus`
        return axios.post(url, data)
    },
    // 获取产品排序列表
    getProductOrderList(data){
        let url = `/szgjadmin/product/getProductOrderList`
        return axios.post(url, data)
    },
    // 产品排序
    setOrders(data){
        let url = `/szgjadmin/product/setOrders`
        return axios.post(url, data)
    },
    settlementProduct(data){
        let url = `/szgjadmin/productSettlement/settlementProduct`
        return axios.post(url, data)
    }
}